package com.fys.order.exception;

import com.fys.order.enums.ResultEnum;

/**
 * @author: fys
 * @description:
 * @create: 2020-07-24 11:07
 **/
public class OrderException extends RuntimeException {

    private Integer code;

    public OrderException(Integer code, String message){
        super(message);
        this.code = code;
    }

    public OrderException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }


}
